package field_method09;

public class CircleTest {
    public void printAreas(Circle c, int time) {
        for (int i = 1; i <= time; i++) {
            c.setRadius(i);
            System.out.println("半径为 " + i + " 的圆面积为：" + c.findArea());
        }
    }

    public static void main(String[] args) {
        Circle circle = new Circle(0);
        CircleTest passObject = new CircleTest();
        passObject.printAreas(circle, 5);
        System.out.println("当前半径值为：" + circle.getRadius());
    }
}